<?php
/* @var $this RampsController */
/* @var $model Ramps */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ramps-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Provided'); ?>
		<?php echo $form->textField($model,'Provided'); ?>
		<?php echo $form->error($model,'Provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RampType'); ?>
		<?php echo $form->textField($model,'RampType'); ?>
		<?php echo $form->error($model,'RampType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RampWidth'); ?>
		<?php echo $form->textField($model,'RampWidth'); ?>
		<?php echo $form->error($model,'RampWidth'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ClassIndResOnly'); ?>
		<?php echo $form->textField($model,'ClassIndResOnly',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'ClassIndResOnly'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RailingsProvided'); ?>
		<?php echo $form->textField($model,'RailingsProvided'); ?>
		<?php echo $form->error($model,'RailingsProvided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HeightFromFloor'); ?>
		<?php echo $form->textField($model,'HeightFromFloor'); ?>
		<?php echo $form->error($model,'HeightFromFloor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AnyEnclosureProvided'); ?>
		<?php echo $form->textField($model,'AnyEnclosureProvided'); ?>
		<?php echo $form->error($model,'AnyEnclosureProvided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'EnclosureConstruction'); ?>
		<?php echo $form->textField($model,'EnclosureConstruction',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'EnclosureConstruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AreFireDoorsProvided'); ?>
		<?php echo $form->textField($model,'AreFireDoorsProvided'); ?>
		<?php echo $form->error($model,'AreFireDoorsProvided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FireDoorWidth'); ?>
		<?php echo $form->textField($model,'FireDoorWidth'); ?>
		<?php echo $form->error($model,'FireDoorWidth'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FireDoorConstruction'); ?>
		<?php echo $form->textField($model,'FireDoorConstruction',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'FireDoorConstruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DoorEquippedWithSelfClosingDevice'); ?>
		<?php echo $form->textField($model,'DoorEquippedWithSelfClosingDevice'); ?>
		<?php echo $form->error($model,'DoorEquippedWithSelfClosingDevice'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DoorWithProperRating'); ?>
		<?php echo $form->textField($model,'DoorWithProperRating'); ?>
		<?php echo $form->error($model,'DoorWithProperRating'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DoorProvidedWithVisionPanel'); ?>
		<?php echo $form->textField($model,'DoorProvidedWithVisionPanel'); ?>
		<?php echo $form->error($model,'DoorProvidedWithVisionPanel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IfYesMadeOf'); ?>
		<?php echo $form->textField($model,'IfYesMadeOf',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'IfYesMadeOf'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DoorSwingingInTheDirectionOfExitTravel'); ?>
		<?php echo $form->textField($model,'DoorSwingingInTheDirectionOfExitTravel'); ?>
		<?php echo $form->error($model,'DoorSwingingInTheDirectionOfExitTravel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AnyObstruction'); ?>
		<?php echo $form->textField($model,'AnyObstruction',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'AnyObstruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TerminationOfExit'); ?>
		<?php echo $form->textField($model,'TerminationOfExit',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'TerminationOfExit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Establishment_Id'); ?>
		<?php echo $form->textField($model,'Establishment_Id'); ?>
		<?php echo $form->error($model,'Establishment_Id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->